﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TestProject.GameUPWS;

namespace TestProject
{
    class Program
    {
        static void Main(string[] args)
        {
            GameUpWSSoapClient Client = new GameUpWSSoapClient();

            //First call to autheticate method
            //string sessionId = Client.AuthenticatePlayer("123456789", "7071BC9E2114");

            //Just for testing
            string sessionId = Client.AuthenticatePlayerDebug("111111111");

            var playerInfo = Client.GetPlayerInfo(sessionId);

            Console.WriteLine("Name: " + playerInfo.Name);
            Console.WriteLine("BirthDate: " + playerInfo.BirthDate.ToShortDateString());
            Console.WriteLine("Gender: " + playerInfo.Gender.ToString());

            Console.ReadLine();
        }
    }
}
